package com.xxxx.server.controller;


import com.xxxx.server.pojo.Nation;
import com.xxxx.server.service.INationService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author qiuxuechen
 * @since 2021-08-07
 */
@RestController
@RequestMapping("/employee/basic/nation")
public class NationController {
    @Autowired
    private INationService nationService;
    @ApiOperation(value = "获取民族列表")
    @GetMapping("/getNationIds")
    public List<Nation> getNationIds(){
        List<Nation> nationList = nationService.list();
        return nationList;
    }
}
